﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Young3.FMSearch.Core.Attributes
{
    /// <summary>
    /// Memoryaddress attribute to mark the start of an memory block containnig
    /// a certain type. F.e. the players list.
    /// </summary>
    internal class MemoryAddressAttribute : Attribute
    {
        public int CountLength { get; set; }
        public int BytesToSkip { get; set; }
        public int ObjectOffset { get; set; }

        public MemoryAddressAttribute(int countLength, int bytesToSkip, int objectOffset = 0x00)
        {
            this.CountLength = countLength;
            this.BytesToSkip = bytesToSkip;
            this.ObjectOffset = objectOffset;
        }

        public MemoryAddressAttribute() { }

    }
}
